package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class AlterTransformActionList {

    private int beginIndex;
    private int endIndex;
    private List<AlterTransformAction> alterTransformActionList;

    public AlterTransformActionList(List<AlterTransformAction> alterTransformActionList) {
        this.beginIndex = alterTransformActionList.get(0).getBeginIndex();
        this.endIndex = alterTransformActionList.get(alterTransformActionList.size() - 1).getEndIndex();
        this.alterTransformActionList = alterTransformActionList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return alterTransformActionList.size();
    }

    public AlterTransformAction get(int index) {
        return alterTransformActionList.get(index);
    }

}
